#ifndef HTTPSERVER_H
#define HTTPSERVER_H

#include <QTcpServer>
#include <QList>
#include <QUrl>
#include <QDomDocument>

#include "connection.h"

namespace Playur {
  class Collection;
}

class HttpServer : public QTcpServer
{
Q_OBJECT

public:
    HttpServer();
    void setCollection(Playur::Collection*);
    Playur::Collection* collection();
    const QString& xml();

private:
    Playur::Collection* _collection;

private slots:
    void handleNewConnection();
};

#endif // HTTPSERVER_H
